package org.example.dubbo.linkconsumer.config;

import org.apache.dubbo.config.annotation.DubboReference;
import org.example.dubbo.linkapi.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DubboConfig {
//    @DubboReference(interfaceClass = UserService.class,
//            url="dubbo://localhost:20880")
    @DubboReference(interfaceClass = UserService.class)
    private UserService userService;

//    @Bean
//    UserService userService() {
//        return userService;
//    }
}
